package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class MemberAgentsList implements Serializable {
   
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
	private String name;
	
	private String cardno;
	
	private String phone;
	
	private String email;
	
	private String address;
	
//	apply_time	申请时间	Time			NOT NULL
//	approve_time	批准时间	Time			NOT NULL
//	progress_rate	申请进度	int		0:默认
//	1：表示申请成功
//	-1：表示失败	NOT NULL
//	company_remark	公司备注	varchar	256		
//	member_remark	会员申请备注	Varchar	256		
//	recharge_spare	备用字段	varchar	256		
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date applyTime;
	
	@Column()
	@Temporal(TemporalType.TIMESTAMP)
	private Date approveTime;
	
	/**
	 * 0默认
	 * 1表示申请成功
	 * -1表示失败
	 */
	@Column(nullable=false)
	private int progressRate;
	
	@Column(length=255)
	private String companyRemark;
	
	@Column(length=255)
	private String memberRemark;
	
	@Column(length=255)
	private String rechargeSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public Date getApplyTime() {
		return applyTime;
	}

	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}

	public Date getApproveTime() {
		return approveTime;
	}

	public void setApproveTime(Date approveTime) {
		this.approveTime = approveTime;
	}

	public int getProgressRate() {
		return progressRate;
	}

	public void setProgressRate(int progressRate) {
		this.progressRate = progressRate;
	}

	public String getCompanyRemark() {
		return companyRemark;
	}

	public void setCompanyRemark(String companyRemark) {
		this.companyRemark = companyRemark;
	}

	public String getMemberRemark() {
		return memberRemark;
	}

	public void setMemberRemark(String memberRemark) {
		this.memberRemark = memberRemark;
	}

	public String getRechargeSpare() {
		return rechargeSpare;
	}

	public void setRechargeSpare(String rechargeSpare) {
		this.rechargeSpare = rechargeSpare;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCardno() {
		return cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	
	
}
